﻿namespace EFS.RC.SupervisorCentral.Controls.Agents.NotACD.Online
{
	/// <summary>
	/// Interaction logic for Main.xaml
	/// </summary>
	public partial class List : EFS.RC.SupervisorCentral.Controls.Agents.List
	{
		/// Constructor
		public List() : base()
		{
			InitializeComponent();
			controlRibbonOnline.AgentList = this;
		}

		#region Properties
		/// Property GridAgents: Get
		protected override System.Windows.Controls.WrapPanel WrapPanelAgents
		{
			get
			{
				return wrapPanelOnline;
			}
		}

		/// Property AgentStatuses: Get
		public override EFS.RC.CC.Messages.Agents.Status[] AgentItems
		{
			get
			{
				// get array ACD
				EFS.RC.CC.Messages.Agents.Status[] statusArray =
					EFS.RC.SupervisorCentral.Common.Session.Instance.AgentList.Filter(null, true, null, null, null, CustomerEndPoint.RequiredSkillId, false, CustomerEndPoint.PhoneUri);
				controlRibbonOnline.Count = statusArray.Length;

				// ok
				return statusArray;
			}
		}

		/// Property ContactListItemNewInstance: Get
		protected override EFS.RC.SupervisorCentral.Controls.Agents.ContactListItem ContactListItemNewInstance
		{
			get
			{
				return new EFS.RC.SupervisorCentral.Controls.Agents.ContactListItemNotTalking();
			}
		}
		#endregion
	}

}